<?xml version="1.0" encoding="ISO-8859-1" ?> 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" > 
	
	


	<!-- Template pour le fixe -->
	<xsl:template match="fixe">
		<html>		
		<META HTTP-EQUIV="Refresh" CONTENT="5" />
		<body>
			<h3>
				<b>
					<center>Fixe <xsl:value-of select="@id"/>(<xsl:value-of select="fixeX"/>,<xsl:value-of select="fixeY"/>)</center>
				</b>
			</h3>			
			<center>
				<table border="1">
					<tr>
						<td width="25%" align="center">
							<img>
								<xsl:attribute name="src">
									<xsl:choose>
										<xsl:when test="@enPanne='oui'">images/enPanne.gif</xsl:when>
										<xsl:otherwise>
											<xsl:choose>
												<xsl:when test="@etatCombineF='raccroche'">images/fixe.jpg</xsl:when>
												<xsl:when test="@etatCombineF='decroche'">images/sonne_tel_fixe.gif</xsl:when>
											</xsl:choose>
										</xsl:otherwise>
									</xsl:choose>					
								</xsl:attribute>				
								<xsl:attribute name="Alt">Fixe</xsl:attribute>
								<xsl:attribute name="border">0</xsl:attribute>
							</img>
							<br/><br/>
							<b>Numero : </b><xsl:value-of select="numero"/>
							<br/>
							<b>Etat : </b>
									<xsl:choose>
										<xsl:when test="@enPanne='oui'">En panne !!!</xsl:when>
										<xsl:otherwise>											
											<xsl:value-of select="@etatF"/> --- <xsl:value-of select="@etatCombineF"/>						
										</xsl:otherwise>
									</xsl:choose>
							<br/>
							<b>Proprietaire : </b> <xsl:value-of select="proprietaire/nomProprietaire"/> --- <xsl:value-of select="proprietaire/prenomProprietaire"/>
						</td>
						<td>
							<table border="0">
								<tr>
									<td><textarea cols="100" rows="10" maxlength="60" readonly="readonly">...</textarea></td>
								</tr>
								<tr><td>&#32;</td></tr>
								
								<tr><td>&#32;</td></tr>
								<tr>
									<td>
										<center>
											<input type="text" value="Veuillez taper votre message..." align="CENTER" size="132" maxlength="100" />
										</center>
									</td>
								</tr>
								<tr><td>&#32;</td></tr>
								<tr>
									<td><center><input type="submit" value="Envoyer" /></center></td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</center>
			<br/>
			</body>
		</html>
	</xsl:template>
	


	
	<xsl:template match="reseau_telephonique">
		<html>			
			<body>				
				<xsl:apply-templates select="fixe" />
			</body>
			<a href="index.php">Retour</a>
		</html>
	</xsl:template>

</xsl:stylesheet>